﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace Ciripescu_WebRole.Admin
{
    public class AdminBasePage : Page
    {
        // IsAdmin
        public AdminBasePage()
        {
            this.Init += new EventHandler(Page_Init);        
        }


        

        protected void Page_Init(object sender, EventArgs e)
        {
            if (Session["IsAdmin"] == null)
                Response.Redirect("/");
        }
    }
}
